package com.laowang.project.system.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.laowang.project.system.mapper.MyCyhPromotionDorMapper;
import com.laowang.project.system.domain.MyCyhPromotionDor;
import com.laowang.project.system.service.MyCyhPromotionDorService;

/**
 * 推广大使Service业务层处理
 *
 * @author laowang
 * @date 2023-12-11
 */
@Service
public class MyCyhPromotionDorServiceImpl implements MyCyhPromotionDorService {
    @Autowired
    private MyCyhPromotionDorMapper myCyhPromotionDorMapper;

    /**
     * 查询推广大使
     *
     * @param id 推广大使ID
     * @return 推广大使
     */
    @Override
    public MyCyhPromotionDor selectMyCyhPromotionDorById(Integer id) {
        return myCyhPromotionDorMapper.selectMyCyhPromotionDorById(id);
    }

    /**
     * 查询推广大使列表
     *
     * @param myCyhPromotionDor 推广大使
     * @return 推广大使
     */
    @Override
    public List<MyCyhPromotionDor> selectMyCyhPromotionDorList(MyCyhPromotionDor myCyhPromotionDor) {
        return myCyhPromotionDorMapper.selectMyCyhPromotionDorList(myCyhPromotionDor);
    }

    /**
     * 新增推广大使
     *
     * @param myCyhPromotionDor 推广大使
     * @return 结果
     */
    @Override
    public int insertMyCyhPromotionDor(MyCyhPromotionDor myCyhPromotionDor) {
        return myCyhPromotionDorMapper.insertMyCyhPromotionDor(myCyhPromotionDor);
    }

    /**
     * 修改推广大使
     *
     * @param myCyhPromotionDor 推广大使
     * @return 结果
     */
    @Override
    public int updateMyCyhPromotionDor(MyCyhPromotionDor myCyhPromotionDor) {
        return myCyhPromotionDorMapper.updateMyCyhPromotionDor(myCyhPromotionDor);
    }

    /**
     * 批量删除推广大使
     *
     * @param ids 需要删除的推广大使ID
     * @return 结果
     */
    @Override
    public int deleteMyCyhPromotionDorByIds(Integer[] ids) {
        return myCyhPromotionDorMapper.deleteMyCyhPromotionDorByIds(ids);
    }

    /**
     * 删除推广大使信息
     *
     * @param id 推广大使ID
     * @return 结果
     */
    @Override
    public int deleteMyCyhPromotionDorById(Integer id) {
        return myCyhPromotionDorMapper.deleteMyCyhPromotionDorById(id);
    }
}
